<script setup>
  const props = defineProps({
    id: String,
  })
  const tolist = () => {
    uni.$emit('test-enventchannle-list', { id: +props.id, name: '李四' })
    uni.navigateBack()
  }
</script>
<template>
  <view>id:{{ props.id }}</view>
  <button @click="tolist">提交</button>
</template>

<style></style>
